<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<link type="text/css" rel="stylesheet" href="/${initParam.context_root }/css/admin/admin_tab_cscenter.css">
<link type="text/css" rel="stylesheet" href="/${initParam.context_root }/css/admin/admin_notice.css">
<link type="text/css" rel="stylesheet" href="/${initParam.context_root }/css/jquery-ui.min.css">
<script type="text/javascript" src="/${initParam.context_root }/script/jquery.js"></script>
<script type="text/javascript" src="/${initParam.context_root }/script/jquery-ui.min.js"></script>
<script type="text/javascript" src="/${initParam.context_root }/script/cscenter.js"></script>
<script type="text/javascript" src="/${initParam.context_root }/script/cscenter-dialog.js"></script>
<script type="text/javascript">

</script>
<h1>${requestScope.divideText }</h1>
<h4>${requestScope.divideTextSub }</h4>
<h3>상세내용</h3>
<table>
	<tr>
		<td>${requestScope.cscenter.title }</td>
	</tr>
	<tr>
		<td>${requestScope.cscenter.nickname } | ${requestScope.cscenter.creDate } | 조회수 : ${requestScope.cscenter.viewCnt }</td>
	</tr>
	<%-- <c:if test="${requestScope.divide=='7'}"> --%>
	<c:if test="${requestScope.cscenter.divide=='7'}">
		<tr>
			<td>${requestScope.cscenter.email }</td>
		</tr>
	</c:if>
	<tr>
		<td>${requestScope.cscenter.content }</td>
	</tr>
	<tr>
		<td>
			<c:choose>
				<c:when test="${requestScope.cscenter.divide=='7' }">
					<%-- <button onclick="javascript:window.location.href='/${initParam.context_root }/admin/cscenter/login/sendEmailForQna.do?no=${requestScope.cscenter.cscenterNo}&page=${requestScope.page }'">답장</button> --%>
					<button id="dialogPopupBtn">답장</button>
				</c:when>
				<c:otherwise>
					<button onclick="javascript:window.location.href='/${initParam.context_root }/admin/cscenter/login/modifyForm.do?no=${requestScope.cscenter.cscenterNo}&page=${requestScope.page }'">수정</button>
				</c:otherwise>
			</c:choose>
			<button onclick="javascript:window.location.href='/${initParam.context_root }/admin/cscenter/login/deleteContent.do?no=${requestScope.cscenter.cscenterNo}&page=${requestScope.page }&divide=${requestScope.cscenter.divide }'">삭제</button>
			<button onclick="javascript:window.location.href='/${initParam.context_root }/admin/cscenter/login/list.do?page=${requestScope.page }&divide=${requestScope.cscenter.divide }'">목록</button>
		</td>
	</tr>
</table>
<div id="dialogPopup" class="dialog" title="이메일 전송" style="display:none;">
	<h4>답변</h4>
	<form name="dialogForm" action="/${initParam.context_root }/admin/cscenter/login/sendEmailForReply.do" method="post">
	<%-- <form action="/${initParam.context_root }/admin/cscenter/login/sendEmailForReply.do" method="post" onsubmit="return writeFormCheck(this);"> --%>
		<input type="hidden" name="no" value="${requestScope.cscenter.cscenterNo }">
		<input type="hidden" name="page" value="${requestScope.page }">
		<textarea cols="50" rows="10" name="contentForReply"></textarea>
	</form>
</div>